package org.ly817.my.spring.core.aop;

/**
 * 切入点信息
 * 指向切入点对象
 *
 * @author LuoYu
 * @date 2018/4/15
 */
public class TargetSource {
    /**
     * 必须是接口
     */
    private Class<?>[] targetInterface;

    /**
     * 切入点对象引用
     */
    private Object target;

    public TargetSource(Object target, Class<?>[] targetInterface) {
        this.target = target;
        this.targetInterface = targetInterface;
    }

    public Class<?>[] getTargetInterface() {
        return targetInterface;
    }

    public Object getTarget() {
        return target;
    }
}
